package com.lh.feign;

import feign.Request;
import feign.Response;

import java.util.Map;

/**
 * @author: linghao
 * @since: 2022/10/26
 */
public interface FeignClientInterceptor {
    default boolean beforeExecute(Request request, Map<String,Object> attchment){
        return true;
    }
    default Response afterExecute(Request request, Map<String,Object> attchment,Response response,Throwable e){return response;}
}
